﻿<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace=" System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.Configuration" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="TarreOA.TarreOAModels" %>
<%@ Import Namespace="TarreOA.TarreOABLL" %>

<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["c_P"] != null && Request["c_N"] != null)
        {
            string catalogName = Request["c_N"]; 
            string curPath = FindConfigurationPath.instance().NetDiskRoots[catalogName].ToString() + Request["c_P"];
            if (!Page.IsPostBack)
            {
                DirectoryInfo dirInfo = new DirectoryInfo(curPath);
                if (dirInfo.Exists)
                {
                    this.LblName.Text = dirInfo.FullName.Substring(dirInfo.FullName.LastIndexOf("\\") + 1);
                    this.LblPlace.Text = Request["c_P"];
                    this.LblLastWriteTime.Text = dirInfo.LastWriteTime.ToString();
                    this.LblSize.Text = "-";   
                }
                FileInfo fileInfo = new FileInfo(curPath);
                if (fileInfo.Exists)
                {
                    this.LblName.Text = fileInfo.Name;
                    this.LblPlace.Text = Request["c_P"];
                    this.LblLastWriteTime.Text = fileInfo.LastWriteTime.ToString();
                    this.LblSize.Text = fileInfo.Length / 1024 + 1 + "K";
                }
            }                
        }
    }
    
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    

                    <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
                <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>

                <style type="text/css">
                <!--
                html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
                scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
                -->
                </style>

</head>
<body>
    <form id="form1" runat="server">
            <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">网络硬盘</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">
    <div style="height:13px; overflow:hidden;"></div>
        <table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse;">
             <tr bgcolor="#b1d5ef">
                    <td colspan="2" nowrap="nowrap">
                        &nbsp;&nbsp;<img align="absMiddle" border="0" src="../images/props.gif">&nbsp;<font style="font-size:12px">文件夹属性</font></td>
                </tr>
                <tr height="20px">
                    <td align="right" nowrap="nowrap" width="100">
                        <font style="font-size: 12px">名称：</font></td>
                    <td nowrap="nowrap">
                        <asp:Label ID="LblName" runat="server" ></asp:Label></td>
                </tr>
                <tr height="20px">
                    <td align="right" nowrap="nowrap" width="100">
                        <font style="font-size: 12px">位置：</font>
                    </td>
                    <td nowrap="nowrap">
                        <asp:Label ID="LblPlace" runat="server" ></asp:Label></td>
                </tr>
                <tr height="20px">
                    <td align="right" nowrap="nowrap" width="100">
                        <font style="font-size: 12px">大小：</font></td>
                    <td nowrap="nowrap">
                        <asp:Label ID="LblSize" runat="server"></asp:Label></td>
                </tr>
                <tr height="20px">
                    <td align="right" nowrap="nowrap" width="100">
                        <font style="font-size: 12px">创建时间：</font></td>
                    <td nowrap="nowrap">
                        <asp:Label ID="LblLastWriteTime" runat="server"></asp:Label></td>
                </tr>
                <tr height="30px">
                    <td align="center" colspan="2" nowrap="nowrap"
                        style="height: 30px">
                        <input id="btnBack" name="btnBack" onclick="javascript:window.history.go(-1)"
                            type="button" value="" class="fanhui_anniu"/></td>
                </tr>
            </table>
    </div>
    </div>
    </form>
</body>
</html>
